package com.joey.concurrency.example.sync;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author hyy
 **/
@Slf4j
public class ThreadMethodExample {

    public static void main(String[] args) {
        for(int i=0;i<10;i++){
            test();
        }
    }

    public static void test(){
        log.info("start ...");
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        log.info("end ...");
    }


}
